package com.lsp.server.user.controller;

import com.lsp.server.common.Apiresponse;
import com.lsp.server.user.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AreaController
 * @Description TODO
 * @Author Mr Hao
 * @Date 2021/11/24 18:22
 */
@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    private AreaService areaService;

    @GetMapping("getAllData")
    public Apiresponse getAllData(){
        return Apiresponse.success(areaService.GetAreaDataJson());
    };
}
